﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Chinajade.Tribe;

namespace Glatterflug
{
    public partial class ReleaseNotesDialog : Form
    {
        public ReleaseNotesDialog(string packageName, Version packageVersion)
        {
            _packageName = packageName;
            _packageVersion = packageVersion;

            InitializeComponent();

            string aboutPath = Path.Combine(Tribe.Paths.PluginResourcesDirectory, "About");

            this.Text = string.Format("{0} v{1} Release Notes", _packageName, _packageVersion);

            richTextBoxReleaseNotes.LoadFile(Path.Combine(aboutPath, "ReleaseNotes.rtf"));
        }

        private void buttonReleaseNotesOK_Click(object sender, EventArgs e)
        {
            this.Close();
        }


        private string _packageName;
        private Version _packageVersion;
    }
}
